//
//  ESRootClass.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/13
//  Copyright (c) dllo. All rights reserved.
//

#import "ESRootClass.h"
#import "Data.h"
@implementation ESRootClass
- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"data"]) {
        _data = [Data modelWithDictionary:value];
    }
}



- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"default"]) {
        _root_default = (NSInteger)value;
    }
}
@end
